import Http from "@/api/http";
import HttpServer from "@/api/useServerRequest";

/**
 * @description 产品中心数据安全四张卡片
 */
export const getProductCardList = () => {
  return Http.get("/prod-api/api/product/dataSecurityList");
};

/**
 * @description 产品中心页面
 */
export const getProductList = () => {
  return Http.get("/prod-api/api/product/list");
};


/**
 * @description 产品详情页面
 */
export const getProductDetailById = (id: number | string) => {
  return Http.get("/prod-api/api/product/getProductDetailsById/" + id);
};

/**
 * @description 产品中心数据安全四张卡片
 */
export const getProductCardListServer = () => {
  return HttpServer.get("/prod-api/api/product/dataSecurityList");
};

/**
 * @description 产品中心页面
 */
export const getProductListServer = () => {
  return HttpServer.get("/prod-api/api/product/list");
};


/**
 * @description 产品详情页面
 */
export const getProductDetailByIdServer = (id: number | string) => {
  return HttpServer.get("/prod-api/api/product/getProductDetailsById/" + id);
};

